/**
 * 
 */
package com.demo2do.strawberry.web.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.demo2do.core.web.interceptor.MenuSetting;

/**
 * @author Downpour
 */
@Controller
@RequestMapping("/")
@MenuSetting("home")
public class HomeController {

  private static final Log logger = LogFactory.getLog(HomeController.class);
  
	/**
	 * Home page
	 * 
	 * @return
	 */
	@RequestMapping(value = {"", "home"})
	public String home() {
	  
	  logger.info(">>>>> INFO message here.");
	  logger.error(">>>> ERROR message here.");
		return "home";
	}
	
}
